import request from '@/utils/request'

// 查询医生专病关联列表
export function listDoctordisease(query) {
  return request({
    url: '/hospital/doctordisease/list',
    method: 'get',
    params: query
  })
}

// 查询医生专病关联详细
export function getDoctordisease(id) {
  return request({
    url: '/hospital/doctordisease/' + id,
    method: 'get'
  })
}

// 新增医生专病关联
export function addDoctordisease(data) {
  return request({
    url: '/hospital/doctordisease',
    method: 'post',
    data: data
  })
}

// 修改医生专病关联
export function updateDoctordisease(data) {
  return request({
    url: '/hospital/doctordisease',
    method: 'put',
    data: data
  })
}

// 删除医生专病关联
export function delDoctordisease(id) {
  return request({
    url: '/hospital/doctordisease/' + id,
    method: 'delete'
  })
}
